-- GENERATED SPELL FOR [Davil Lightfire] --


function spell0_10944(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(17232,pUnit)
pUnit:RegisterEvent('Sorts_10944', 549, 1)
end

function spell1_10944(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10944', 6295, 1)
end

function spell2_10944(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10944', 555, 1)
end

function Sorts_10944(pUnit, Event)
local choix_sorts_10944 = math.random(0, 2)
if choix_sorts_10944 == 0 then
pUnit:RegisterEvent('spell0_10944', 1, 1)
end
if choix_sorts_10944 == 1 then
pUnit:RegisterEvent('spell1_10944', 1, 1)
end
if choix_sorts_10944 == 2 then
pUnit:RegisterEvent('spell2_10944', 1, 1)
end
end

function mob10944_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10944', math.random(1500, 3000), 1)
end

function mob10944_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10944_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10944_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10944, 1, 'mob10944_Action')
RegisterUnitEvent(10944, 2, 'mob10944_Leave')
RegisterUnitEvent(10944, 3, 'mob10944_Kill')
RegisterUnitEvent(10944, 4, 'mob10944_Die')
